<template>
    <div>
        用户中心
        <van-button type="primary" @click='signout'>退出登录</van-button>
    </div>
</template>
<script>
// @ is an alias to /src
import {signout} from '@/api/login'
export default {
    name: 'XXX',
    data() {
        return {
        
        }
    },
    methods: {
        signout(){
            signout().then(data=>{
                if(data.code==0){
                    this.$router.push('/login')
                }
            })
        }
    },
    components: {
        
    }
}
</script>
<style lang="less">

</style>